package it.univaq.mwt.frontoffice.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.validator.ValidatorForm;

public class ListForm extends ValidatorForm{

	private static final long serialVersionUID = 1L;
	
	private String name=null;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
/*	
    public void reset(ActionMapping mapping, HttpServletRequest request) {
    this.name=null;
   
    }

  public ActionErrors validate( 
      ActionMapping mapping, HttpServletRequest request ) {
      ActionErrors errors = new ActionErrors();
      
      if( getName() == null || getName().length() < 1 ) {
        errors.add("name",new ActionMessage("error.name.required"));
      }
     

      return errors;
  }
	*/
}
